@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  font-weight: 400;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 针对移动设备优化触摸体验 */
@media (max-width: 768px) {
  /* 禁用双击缩放，改善滚动体验 */
  button, 
  a,
  input,
  select,
  textarea {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* 增加移动设备上的可点击区域大小 */
  button, 
  a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* 优化移动设备上的字体大小和间距 */
  body {
    font-size: 16px;
  }
  
  /* 增强移动设备上的手势支持 */
  * {
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    user-select: none;
  }
  
  input, textarea {
    -webkit-user-select: text;
    user-select: text;
  }
}